package com.ruoyi.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.XianxingMapper;
import com.ruoyi.system.domain.Xianxing;
import com.ruoyi.system.service.IXianxingService;
import com.ruoyi.common.support.Convert;

/**
 * 限行规则 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class XianxingServiceImpl implements IXianxingService 
{
	@Autowired
	private XianxingMapper xianxingMapper;

	/**
     * 查询限行规则信息
     * 
     * @param xianxingId 限行规则ID
     * @return 限行规则信息
     */
    @Override
	public Xianxing selectXianxingById(Integer xianxingId)
	{
	    return xianxingMapper.selectXianxingById(xianxingId);
	}
	
	/**
     * 查询限行规则列表
     * 
     * @param xianxing 限行规则信息
     * @return 限行规则集合
     */
	@Override
	public List<Xianxing> selectXianxingList(Xianxing xianxing)
	{
	    return xianxingMapper.selectXianxingList(xianxing);
	}
	
    /**
     * 新增限行规则
     * 
     * @param xianxing 限行规则信息
     * @return 结果
     */
	@Override
	public int insertXianxing(Xianxing xianxing)
	{
	    return xianxingMapper.insertXianxing(xianxing);
	}
	
	/**
     * 修改限行规则
     * 
     * @param xianxing 限行规则信息
     * @return 结果
     */
	@Override
	public int updateXianxing(Xianxing xianxing)
	{
	    return xianxingMapper.updateXianxing(xianxing);
	}

	/**
     * 删除限行规则对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteXianxingByIds(String ids)
	{
		return xianxingMapper.deleteXianxingByIds(Convert.toStrArray(ids));
	}
	
}
